Home

Getting Started

*Defaults

  All Gadget have a default setting. Setting default colors,sizes and positions for gadget Can save time when creating new gadgets. For example, A if the defaut color for a button is set to blue all buttons will be set with the color blue when created. Defaults are not part of the api language because it is much quicker to edit each type indevidually. The #include. File named "Default can be edited manually."

  GetButtonBgImage(ID)   Returns Background ID or -1.

  GetButtonHeight(ID)   Returns Height.

  GetButtonWidth(ID)   Returns Width.

  SetButtonBgColor(ID,Color)   `Accepts color from makecolor(),Sets Background color of sprite, Accepts Alpha value.

  SetButtonBGImage(ID,ImageID)   `Accepts Integer, Sets Background image.

  SetButtonBorderWidth(ID,Width)   `Accepts Integer, Sets Border Width.

  SetButtonDragAndDrop(ID,Bool)   ` Accepts Integer 1-0, 1 enalbes button to be dropped onto other gadgets, 0 false.

  SetButtonHoverState(ID)   Returns 1 if button is being hovered, else 0.

  SetButtonVisible(ID,Boolean)   `Sets button visible or hidden 1 visible, 0 hidden.

  GetButtonText(ID)   Returns Text String or -1

  SetButtonDepth(ID,Depth)   Accepts Integer, Forces Button to add or subtract depth to its depth sorting.

  SetButtonHeight(ID,Height)   `Accepts integer sets the height.

  SetButtonWidth(ID,Width)   Accepts integer sets the width.

  SetButtonSize(ID,Width,Height)   Accepts integer sets the width and height.

  SetButtonPaddingWidth(ID,Width)   `Accepts Integer, Sets Padding Width.

  SetButtonPaddingColor(ID,Color)   `Accepts color from makecolor(),Sets Padding color of sprite, Accepts Alpha value.

  SetButtonBorderColor(ID,Color)   `Accepts color from makecolor(),Sets Border color of sprite, Accepts Alpha value.

  SetButtonColor(ID,Integer)   `Accepts color from makecolor(), Sets entire sprite to specified color.

  SetButtonAlpha(ID,AlphaValue)   `Accepts integer 0-255, Sets entire Sprite to the specified alpha value

  SetButtonEditMode(ID,Bool)   `Accepts Integer 1-0, overides settings enables all api features,"button action will be disabled while in edit mode"

  SetButtonToolTip(ID,String)   Accepts String, Sets Button to generate and destroy a tooltip preview on hover. Hover Must be enabled see SetButtonActivateHover(ID,Bool)

  SetButtonDrag(ID,Bool)   `Accepts integer 0-1,Enables Dragging

  SetButtonResize(ID,Bool)   `Accepts integer 0-1,Enables Resizing

 SetButtonActivateMode(ID,Bool)   `Accepts integer 0-1, (1) Enables Hover to activate, "0" Default Behavior

  SetButtonHighlight(ID,Bool)   `Accepts Integer 1-0, Enables Highlighting